home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 2619 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.3 KB

  1. Path: castle.nando.net!news
  2. From: actuary@nando.net   (Bill McCarthy)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Can be C a so strange language ???. Problem with a function
  5. Date: 22 Jan 1996 19:44:59 GMT
  6. Organization: News & Observer Public Access
  7. Message-ID: <4e0pfr$cpo@castle.nando.net>
  8. References: <4e015j$drt@hermes.fundp.ac.be>
  9. Reply-To: actuary@nando.net (Bill McCarthy)
  10. NNTP-Posting-Host: grail1108.nando.net
  11. X-Newsreader: IBM NewsReader/2 v1.2
  12.  
  13. In <4e015j$drt@hermes.fundp.ac.be>, Francisco Melo Ledermann <fmelo@biq.fundp.ac.be> writes:
  14. >Hi everybody !, I have a problem that for me appears to a really strange 
  15. >one. I have a function that call another function. The function 
  16. >that is called is the next one:
  17. >
  18. >struct heavy_atom *Set_Position_AA_Number (int residue_number, 
  19. >                                        struct heavy_atom *position_ptr)
  20. >{
  21. > int out;
  22. > out = 0;
  23. >
  24. > while (out != 1)
  25.  
  26. The above will ALWAYS be true.
  27.  
  28. > {
  29. >  if ((*position_ptr).res_number != residue_number)
  30. >  {
  31. >   if ((*position_ptr).cooh_ptr != NULL)
  32. >   {
  33. >    position_ptr = (*position_ptr).cooh_ptr;
  34. >   }
  35. >  }
  36. >   else
  37. >   {
  38. >    return (position_ptr);
  39. >    out = 1;
  40.  
  41. The line above can NEVER be reached.
  42.  
  43. >   }
  44. > }
  45. >}   /* end of Set_Position_AA_Number function */
  46.  
  47. Bill McCarthy
  48. actuary@nando.net
  49. Wendell, NC  USA
  50.